package com.wang.book.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wang.book.entity.Book;

public interface BookService {
    //添加图书
    Boolean addBook(Book book);
    //分页查询
    Page<Book> listBooks(int page, int size);

    boolean deleteBook(Integer id);

    Book getBookById(int id) ;

    Book updateBook(Book book);
}
